// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.enums;

/**
 * 项目等级类型枚举
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023-03-08
 */
public enum ExpertGroupEnum {
    GROUP_STRUCTURE(1, "结构组"),
    GROUP_MATERIAL(2, "材料组"),
    GROUP_COMBUSTION(3, "燃热组"),
    GROUP_FLUID(4, "流体、传热组"),
    GROUP_ELECTRIC(5, "电控组");

    private int value;

    private String name;

    ExpertGroupEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static String getNameByValue(int value) {
        ExpertGroupEnum arrObj[] = ExpertGroupEnum.values();
        for (ExpertGroupEnum obj : arrObj) {
            if (value == obj.getValue()) {
                return obj.getName();
            }
        }
        return " ";
    }

}
